home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / draw.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  923b  |  37 lines

  1. //   Graphics editor - simple example of objects organization.
  2. //     all flags are kept in global_i[1] ...
  3.  
  4. #ifndef __DRAW_H_
  5. #define __DRAW_H_
  6.  
  7. //#include "tools.h"
  8. #include "window.h"
  9. #include "gbuf.h"
  10. //#include "kh_draw.h"
  11.  
  12. class KH_Draw;
  13.  
  14. class Draw : public Window
  15.     {
  16.     public:
  17.         int saved;             // Is the file saved or ask "SAVE: Y/N ?"
  18.         KH_Draw* kh_draw;
  19.  
  20.     Draw(rect coordinates);
  21.     virtual ~Draw();
  22.     virtual void exe(int act);
  23.     virtual void show();
  24.     virtual void repose(rect rec);
  25.     void draw();
  26.     void load();      // reloads pcx - file from global[]
  27.     void save();
  28.     void new_file(rect r, int hide = 1);
  29.     int do_scroll(int key, GrafBuffer* buf);    // scroll with keyboard
  30.     int cut_copy(char* copyName = "copy.pcy");
  31.     int paste(char* copyName = "copy.pcy");
  32.     int filter_func();
  33.     int dither_func();
  34.         loc verify_rect(rect r);
  35.     };
  36.  
  37. #endif __DRAW_H_